package b3.widget.guide
{
	import b3.net.*;
	import b3.widget.basic.*;
	import b3.util.*;
	
	import flash.filters.*;
	import flash.text.*;

	public class TipDialog extends BasicWidget
	{
		public function TipDialog(message:String)
		{
			super();
			this.anchor = ANCHOR_RIGHT_MIDDLE;
			this.effect = EFFECT_EXPAND; 
			//背景
			var TipDialogBgr:Class = ResourceHelper.getInstance().getClassByName("TipDialogBgr");
			addChild(new TipDialogBgr());
			//帮助文字
			var textField:TextField = new TextField();
			textField.selectable = false;
        	textField.autoSize = TextFieldAutoSize.LEFT;
        	textField.wordWrap = true;
        	textField.width = 150;
			textField.defaultTextFormat = new TextFormat(BFont.fontName, 16, 0xFFFFFF);
			textField.filters = [new GlowFilter(0x00AAFF, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
			textField.x = 15;
			textField.y = 40;
			textField.text = message;
			addChild(textField);
			this.x = -200;
			this.y = 100 - textField.height / 2;
		}
		
	}
}